package com.ruoyi.system.mapper;

import java.util.List;

import com.ruoyi.system.domain.AppUserEquipment;

/**
 * 用户设备Mapper接口
 *
 * @author ruoyi
 * @date 2023-02-27
 */
public interface AppUserEquipmentMapper {
    /**
     * 查询用户设备
     *
     * @param id 用户设备主键
     * @return 用户设备
     */
    public AppUserEquipment selectAppUserEquipmentById(Long id);

    /**
     * 查询用户设备列表
     *
     * @param appUserEquipment 用户设备
     * @return 用户设备集合
     */
    public List<AppUserEquipment> selectAppUserEquipmentList(AppUserEquipment appUserEquipment);

    /**
     * 新增用户设备
     *
     * @param appUserEquipment 用户设备
     * @return 结果
     */
    public int insertAppUserEquipment(AppUserEquipment appUserEquipment);

    /**
     * 修改用户设备
     *
     * @param appUserEquipment 用户设备
     * @return 结果
     */
    public int updateAppUserEquipment(AppUserEquipment appUserEquipment);

    /**
     * 删除用户设备
     *
     * @param id 用户设备主键
     * @return 结果
     */
    public int deleteAppUserEquipmentById(Long id);

    /**
     * 批量删除用户设备
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppUserEquipmentByIds(Long[] ids);

    AppUserEquipment getOneByEquipmentId(String equipmentId);

    AppUserEquipment getOneByUserId(Long userId);
}
